from flask import Blueprint
from app.api.v1.user import red_user
from app.api.v1.token import red_token
from app.api.v1.blogs import red_blogs
from app.api.v1.book import red_book
from app.api.v1.file import file_api


def create_blueprint_v1():
    v1 = Blueprint('v1', __name__)
    # 将红图注册到蓝图中.
    red_user.register_blueprint(v1)
    red_token.register_blueprint(v1)
    red_blogs.register_blueprint(v1)
    red_book.register_blueprint(v1)
    file_api.register_blueprint(v1)
    return v1
